﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using SpaceNeedle.x6473.WindowsPhone.ViewModels;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace SpaceNeedle.x6473.WindowsPhone.Views
{
    public partial class OpenPhoto : PhoneApplicationPage
    {
        public OpenPhoto()
        {
            InitializeComponent();

            string uri = AppViewModel.Instance.Properties.SelectedRequestItem.Photo;

            BitmapImage image = new BitmapImage(new Uri(uri, UriKind.Absolute));
            pict.Source = image;
        }
    }
}